package com.lagou.demo03.factory;

import com.lagou.demo03.dao.StudentUpdateDao;
import com.lagou.demo03.dao.StudentUpdateDaoImp;

public class StudentUpdateDaoFactory {
    /**
     * 通过静态工厂方法模式来实现按StudentUpdateDao实现类对象的创建并返回
     * @return
     */
    public static StudentUpdateDao getStudentUpdateDao(){
        return new StudentUpdateDaoImp();
    }
}
